#ifndef OBSFORM_H
#define OBSFORM_H

#include <QWidget>
#include <QFileDialog>
#include <config/common.h>
#include <config/config.h>
#include "util/define.h"
#include "form/fileattributeform.h"
#include "thread/fracneobstopsegythread.h"
#include "thread/chinaobstopsegythread.h"
#include "thread/fracneobstosacthread.h"
#include "thread/chinarawtosacthread.h"

namespace Ui {
    class OBSForm;
}

class OBSForm : public QWidget
{
    Q_OBJECT

public:
    explicit OBSForm(QWidget *parent = 0);
    ~OBSForm();
    void resizeEvent(QResizeEvent *);
protected:
    void paintEvent(QPaintEvent *);
private slots:
    void on_pushButton_file_clicked();
    void on_pushButton_transform_clicked();
    void on_pushButton_save_clicked();
    void fileFinish(QString fileName);
    void fileAll();
    void info(QString info);
    void on_pushButton_remove_clicked();
    void on_pushButton_add_clicked();
    void on_pushButton_select_clicked();

    void on_radioButton_FF_clicked();
    void on_listWidget_file_doubleClicked(QModelIndex index);
    void on_pushButton_xml_clicked();

    void on_radioButton_HOBS_clicked();

    void on_radioButton_IOBS_clicked();

    void on_radioButton_IGOBS_clicked();

private:
    Ui::OBSForm *ui;
    int margin;
    Common *common;
    Config *config;
    DATAFORMAT format;
    float step ;
    float progressBarValue;


};

#endif // OBSFORM_H
